# 5.2 【全量公司】资金3期回款单/退货退款/应收款/销项发票/合同/客户模板解释处理
# 编写者 张传鹏  4505s，4841，4957，4118
# corpidList为要排除的已经提前刷好的公司集合列表
curl  http://playbackjobs.xbongbong.com.cn/pro/v1/script/fund/sheet/explains/fundThree -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","platform":"web","frontDev": "1","xbbCode": 123456, "flag": 1, "corpidList": ["ding66041eb1c6df73f535c2f4657eb6378f","ding0064986624e3b83b35c2f4657eb6378f","dinga93c84f4d89688bf35c2f4657eb6378f","ding18b527cbc48f835535c2f4657eb6378f","ding45b220254ed2e97335c2f4657eb6378f","ding6abd8692b59077b7f2c783f7214b6d69"]}'


# 2.2 【全量公司】处理其他收入单、其他支出单、资金调拨单的menu、form、explain
# 全量执行时，会剔除上面已经执行过的公司
# 编写者 张传鹏
# 如果是回滚后再次上线且第一次上线时该脚本已执行，则需先执行sql：【UPDATE tb_paas_menu SET del = 0 WHERE alias in ("otherFundManagement", "otherIncome", "otherExpense", "fundTransfer")】，未回滚则忽略这个sql语句不用执行，否则先执行sql再执行该脚本
# codeReview者
# 耗时1037s = 17min  912
curl http://playbackjobs.xbongbong.com.cn/pro/v1/script/fund/menu/otherFund/init -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","xbbCode":123456,"corpid":"1","userId":"1","platform":"web", "flag": 1, "corpidList": ["ding66041eb1c6df73f535c2f4657eb6378f","ding0064986624e3b83b35c2f4657eb6378f","dinga93c84f4d89688bf35c2f4657eb6378f","ding18b527cbc48f835535c2f4657eb6378f","ding45b220254ed2e97335c2f4657eb6378f","ding6abd8692b59077b7f2c783f7214b6d69"]}'

# 添加产品解释 by郑风 【在刷其他公司】  651s  794s  631s
curl http://playbackjobs.xbongbong.com.cn/pro/v1/script/distributor/product/addProductExplain -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","corpidList":[],"exclude":["ding66041eb1c6df73f535c2f4657eb6378f","ding0064986624e3b83b35c2f4657eb6378f","dinga93c84f4d89688bf35c2f4657eb6378f","ding18b527cbc48f835535c2f4657eb6378f","ding45b220254ed2e97335c2f4657eb6378f","ding6abd8692b59077b7f2c783f7214b6d69"],"platform":"web","frontDev":"1","xbbCode":"123456"}'
# 刷产品销量、上架时间、spu价格 by 郑风 【在刷其他公司】   572s  1046s  1598s
curl http://playbackjobs.xbongbong.com.cn/pro/v1/script/distributor/product/generateProductData -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","corpidList":[],"exclude":["ding66041eb1c6df73f535c2f4657eb6378f","ding0064986624e3b83b35c2f4657eb6378f","dinga93c84f4d89688bf35c2f4657eb6378f","ding18b527cbc48f835535c2f4657eb6378f","ding45b220254ed2e97335c2f4657eb6378f","ding6abd8692b59077b7f2c783f7214b6d69"],"platform":"web","frontDev":"1","xbbCode":"123456"}'
# 同步产品es by郑风 刷所有公司数据 【maxid:11380983】 7346s  7920s
curl http://playbackjobs.xbongbong.com.cn/pro/v1/esInit/formDataInit -X POST -H 'Content-type: application/json' -d '{"corpid":"1","userId":"1","businessType": 2401,"byCorpid":0,"saasMark":1,"platform":"web","frontDev":"1","xbbCode":"123456"}'
